#pragma once
#include "SocketComm.h"
#define SOCKETIDLE 0
#define SOCKETWATINGRESP 1



class CSocketAgent :
	public CSocketComm
{
public:
	CSocketAgent();
	~CSocketAgent();
	int m_nStatus;
	UCHAR m_cType;
	UCHAR m_cMode;
	CString m_strPort;
	
public:
	virtual void OnDataReceived(const LPBYTE lpBuffer, DWORD dwCount);
	virtual void OnEvent(UINT uEvent, LPVOID lpvData);
public:
	void SendResp(char cAddr, char cType, char *szPara, short wparalen);
	bool StartServer();
							
};

